#ifndef __EFFECTSPRITE__H_
#define __EFFECTSPRITE__H_

#include "cocos2d.h"

USING_NS_CC;
/*********************| effect Sprite Class |*********************/
class EffectSprite: public CCSprite
{
public:
	enum {
		EFF_GREY = 0,
		EFF_LIGHTER,
		EFF_NONE,
		EFF_CNT
	};
public:
	static EffectSprite* 	create(const char* res, int effectType, float data = 0.0f);
	bool 			initWithTexture(CCTexture2D *pTexture, const CCRect& rect);
	void 			draw();

public:
	GLfloat 		_data;
private:
	GLuint 			_shFuncPos;
	int 			_effectType;
};

#endif //__EFFECTSPRITE__H_
